﻿using System;
using SchemaGen.Xsd;

namespace SchemaGen.Attributes
{
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Class, Inherited = true, AllowMultiple = true)]
    public abstract class XmlSimpleTypeAttribute : Attribute
    {
        public string Name { get; protected set; }
        public virtual string Documentation { get; set; }
        public abstract SSimpleType Restriction { get; }

        public XmlSimpleTypeAttribute(string name)
        {
            // TODO: Validate name format
            Name = name;
        }
    }
}
